Ext.define('app.prm.detail.DetailModel',
{
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.detailmodel',
    constructor: function () {
        var me = this;
        this.callParent(arguments);
    },
    data: {
        projectNo: '',
        projectName: '',
        productNo: '',
        customer: '',
        customeCode: '',
        rdCenter: '',
        lab: '',
        planStartDate: '',
        planEndDate: '',
        planProgress: 0,
        actualStartDate: '',
        actualEndDate: '',
        actualProgress: 0,
        targetEndDate: '',
        qualityStandard: '',
        projectNature: '',
        address: '',
        taskType: '',
        remark: '',
        actualCost: 0,
        actualWorkCost: 0,
        targetWorkCost: 0,
        actualOutPut: 0,
        actualMaterialCost: 0,
        targetCost: 0,
        targetOutPut: 0,
        targetMaterialCost: 0,
        teamCommentStatus: 0,
        prmCommentStatus: 0
    }
    //formulas: {
    //    formatPlanProgress: function (get){
    //        return get('planProgress') * 100 + "%"
    //    },
    //    formatActualProgress: function (get) {
    //        return get('actualProgress') * 100 + "%"
    //    }
    //}
});